﻿using System.Collections;
using NUnit.Framework;

namespace Dgg.LearnYourTools.NUnit.B_DataTesting.a_TestCase
{
	[TestFixture]
	public class _010_TestCaseData
	{
		[Test, TestCaseSource("withTestCaseData")]
		public void TestCaseSource_CanHandleTestCaseData(int i, int j, string result)
		{
			Assert.AreEqual(result, (i + j).ToString());
		}

		internal static IEnumerable withTestCaseData
		{
			get
			{
				yield return new TestCaseData(1, 2, "3").Ignore("because we can");
				yield return new TestCaseData(2, 2, "4");
			}
		}
	}
}
